import request from '@/utils/request'
// 城市列表
export const cityList = function () {
  return request.get('/area/city?level=1')
}
// 热门城市
export const hotCity = function () {
  return request.get('/area/hot')
}
// 根据城市名称查询该城市信息
export const nameCity = function (name) {
  return request.get('/area/info', { params: { name } })
}
// 小区关键词查询
export const communityKey = function (params) {
  return request.get('/area/community', { params })
}
// 地图
export const getMap = function (id) {
  return request.get('/area/map', { params: { id } })
}
